#/bin/sh

echo "self power app"

# run vsftpd server
mkdir -p /var/ftp/usr_data
mkdir -p /var/ftp/usr_log
mount /dev/mmcblk1p6 /var/ftp/usr_data
mount /dev/mmcblk1p5 /var/ftp/usr_log
chmod 777 /var/ftp/usr_data
chmod 777 /var/ftp/usr_log
vsftpd &

#cd /home/root/
#chmod +x ptpd2
#./ptpd2 -u 10.109.3.80 -M -i eth0 -r 0

#setup linux driver
cd /home/root/all_flash
insmod hitmc_simpledma_driver1.ko

chmod +x 03_bus_module
./03_bus_module &

